<#-- 导入模版定义文件-->
<#include "../template/template_editPage.ftl">
<@edit title="订单详情">

<body class="input">

<script type="text/javascript">
    $().ready(function () {

        <#if actionErrors?? && (actionErrors?size > 0)>
            $.dialog({type:"warn", content:"<#list errorMessages as list>${list!}<br></#list>",
                modal:true, autoCloseTime:3000});
        </#if>
    });
</script>

<div class="body">
<div class="inputBar">
    <h1><span class="icon">&nbsp;</span>订单详情</h1>
</div>
<ul class="tab">
    <li>
        <input type="button" value="基本信息" hidefocus="true"/>
    </li>
</ul>
<table class="inputTable tabContent">
<tr>
    <th>
        订单编号:
    </th>
    <td>
        <input type="text" name="orderInfo.orderId" class="formText {required: true}"
               value="${(orderInfo.orderId)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        手拉手商品编号:
    </th>
    <td>
        <input type="text" name="orderInfo.goodsId" class="formText {required: true}"
               value="${(orderInfo.goodsId)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        商品名称:
    </th>
    <td>
        <input type="text" name="orderInfo.goodsName" class="formText {required: true}"
               value="${(orderInfo.goodsName)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        手拉手商品品牌编号:
    </th>
    <td>
        <input type="text" name="orderInfo.brandId" class="formText {required: true}"
               value="${(orderInfo.brandId)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        商品品牌名称:
    </th>
    <td>
        <input type="text" name="orderInfo.brandName" class="formText {required: true}"
               value="${(orderInfo.brandName)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        手拉手订单生成时间:
    </th>
    <td>
        <input type="text" name="orderInfo.createOrderTime" class="formText {required: true}"
               value="${(orderInfo.createOrderTime)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        手拉手平台IP:
    </th>
    <td>
        <input type="text" name="orderInfo.slsPlatformIP" class="formText {required: true}"
               value="${(orderInfo.slsPlatformIP)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        玩家游戏账号:
    </th>
    <td>
        <input type="text" name="orderInfo.gameAccount" class="formText {required: true}"
               value="${(orderInfo.gameAccount)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        下游商户订单号:
    </th>
    <td>
        <input type="text" name="orderInfo.merchantOrderId" class="formText {required: true}"
               value="${(orderInfo.merchantOrderId)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        下游承包商账号:
    </th>
    <td>
        <input type="text" name="orderInfo.contractId" class="formText {required: true}"
               value="${(orderInfo.contractId)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        下游回调地址url:
    </th>
    <td>
        <input type="text" name="orderInfo.notifyUrl" class="formText {required: true}"
               value="${(orderInfo.notifyUrl)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        最终购买用户IP地址:
    </th>
    <td>
        <input type="text" name="orderInfo.merchantIP" class="formText {required: true}"
               value="${(orderInfo.merchantIP)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        商品面值(元):
    </th>
    <td>
        <input type="text" name="orderInfo.goodsValue" class="formText {required: true}"
               value="${(orderInfo.goodsValue*1.0/1000)?string("0.000")!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        商品进价(元):
    </th>
    <td>
        <input type="text" name="orderInfo.goodsCostPrice" class="formText {required: true}"
               value="${(orderInfo.goodsCostPrice*1.0/1000)?string("0.000")!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        商品售价(元):
    </th>
    <td>
        <input type="text" name="orderInfo.goodsSalePrice" class="formText {required: true}"
               value="${(orderInfo.goodsSalePrice*1.0/1000)?string("0.000")!}" readonly="readonly"/>
    </td>
</tr>

<tr>
    <th>
        购买数量:
    </th>
    <td>
        <input type="text" name="orderInfo.buyNum" class="formText {required: true}"
               value="${(orderInfo.buyNum)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        总金额(元):
    </th>
    <td>
        <input type="text" name="orderInfo.totalPrice" class="formText {required: true}"
               value="${(orderInfo.totalPrice*1.0/1000)?string("0.000")!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        区服:
    </th>
    <td>
        <input type="text" name="orderInfo.areaServer" class="formText {required: true}"
               value="${(orderInfo.areaServer)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        订单状态:
    </th>
    <td>
        <#if orderInfo.status?? && orderInfo.status == "0">
            失败
        <#elseif orderInfo.status?? && orderInfo.status == "1">
            成功
        <#elseif orderInfo.status?? && orderInfo.status == "2">
            处理中
        <#elseif orderInfo.status?? && orderInfo.status == "3">
            存疑
        </#if>
    </td>
</tr>
<tr>
    <th>
        订单状态备注:
    </th>
    <td>
        <textarea name="orderInfo.statusRemark" class="formTextarea"
                  readonly="readonly">${(orderInfo.statusRemark)!}</textarea>
    </td>
</tr>
<tr>
    <th>
        订单结果:
    </th>
    <td>
        <#if orderInfo.result?? && orderInfo.result=="ORDER_SUCCESS">
            成功
        <#elseif orderInfo.result?? && orderInfo.result=="ORDER_FAILED">
            失败
        <#elseif orderInfo.result?? && orderInfo.result=="ORDER_UNDERWAY">
            处理中
        <#elseif orderInfo.result?? && orderInfo.result=="REQUEST_FAILED">
            请求失败
        <#else>
            <input type="text" name="orderInfo.result" class="formText {required: true}"
                   value="${(orderInfo.result)!}" readonly="readonly"/>
        </#if>
    </td>
</tr>
<tr>
    <th>
        卡密信息:
    </th>
    <td>
        <input type="text" name="orderInfo.cardsInformation" class="formText {required: true}"
               value="${(orderInfo.cardsInformation)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        卡号卡密:
    </th>
    <td>
        <input type="text" name="orderInfo.cardNoPwd" class="formText {required: true}"
               value="${(orderInfo.cardNoPwd)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        卡密备注:
    </th>
    <td>
        <textarea name="orderInfo.cardRemark" class="formTextarea"
                  readonly="readonly">${(orderInfo.cardRemark)!}</textarea>
    </td>
</tr>
<tr>
    <th>
        接入渠道标识:
    </th>
    <td>
        <input type="text" name="orderInfo.userType" class="formText {required: true}"
               value="${(orderInfo.userType)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        佣金(元):
    </th>
    <td>
        <input type="text" name="orderInfo.commission" class="formText {required: true}"
               value="${(orderInfo.commission*1.0/1000)?string("0.000")!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        手拉手在供应商注册账号:
    </th>
    <td>
        <input type="text" name="orderInfo.registerAccount" class="formText {required: true}"
               value="${(orderInfo.registerAccount)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        操作员账号:
    </th>
    <td>
        <input type="text" name="orderInfo.operator" class="formText {required: true}"
               value="${(orderInfo.operator)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        支付状态:
    </th>
    <td>
        <#if orderInfo.isPay?? && orderInfo.isPay=="0">
             支付失败
        <#elseif orderInfo.isPay?? && orderInfo.isPay=="1">
           	 支付成功
        <#elseif orderInfo.isPay?? && orderInfo.isPay=="2">
            退款失败
        <#elseif orderInfo.isPay?? && orderInfo.isPay=="3">
            退款成功
        </#if>
    </td>
</tr>
<tr>
    <th>
        支付时间:
    </th>
    <td>
        <input type="text" name="orderInfo.payTime" class="formText {required: true}"
               value="${(orderInfo.payTime)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        支付交易单号:
    </th>
    <td>
        <input type="text" name="orderInfo.paymentOrderNo" class="formText {required: true}"
               value="${(orderInfo.paymentOrderNo)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        上游供应商编号:
    </th>
    <td>
        <input type="text" name="orderInfo.supplyId" class="formText {required: true}"
               value="${(orderInfo.supplyId)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        上游供应商名称:
    </th>
    <td>
        <input type="text" name="orderInfo.supplyName" class="formText {required: true}"
               value="${(orderInfo.supplyName)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        上游供货商订单编号:
    </th>
    <td>
        <input type="text" name="orderInfo.supOrderId" class="formText {required: true}"
               value="${(orderInfo.supOrderId)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        上游供货商充值成功时间:
    </th>
    <td>
        <input type="text" name="orderInfo.supOrderSuccessTime" class="formText {required: true}"
               value="${(orderInfo.supOrderSuccessTime)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        上游SUP平台退款种类:
    </th>
    <td>
        <#if orderInfo.supplyId?? && orderInfo.supplyId =="20121001">
            <#if orderInfo.reType?? && orderInfo.reType=="1">
                <input type="text" name="orderInfo.reType" class="formText {required: true}"
                       value="整个订单金额退款" readonly="readonly"/>
            <#elseif orderInfo.reType?? && orderInfo.reType=="2">
                <input type="text" name="orderInfo.reType" class="formText {required: true}"
                       value="订单部分金额退款" readonly="readonly"/>
            <#else >
                <input type="text" name="orderLogInfo.reType" class="formText {required: true}"
                       value="${(orderLogInfo.reType)!}" readonly="readonly"/>
            </#if>
        <#else >
            <input type="text" name="orderInfo.reType" class="formText {required: true}"
                   value="${(orderInfo.reType)!}" readonly="readonly"/>
        </#if>
    </td>
</tr>
<tr>
    <th>
        上游退款金额(元):
    </th>
    <td>
        <input type="text" name="orderInfo.rePrice" class="formText {required: true}"
               value="${(orderInfo.rePrice*1.0/1000)?string("0.000")!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        上游退款的卡密张数:
    </th>
    <td>
        <input type="text" name="orderInfo.reNum" class="formText {required: true}"
               value="${(orderInfo.reNum)!}" readonly="readonly"/>
    </td>
</tr>
<tr>
    <th>
        订单是否删除:
    </th>
    <td>
        <#if orderInfo.isDelete?? && orderInfo.isDelete=="0">
            已删除
        <#elseif orderInfo.isDelete?? && orderInfo.isDelete=="1">
            未删除
        </#if>
    </td>
</tr>
<tr>
    <th>
        推送下游用户订单结果返回状态:
    </th>
    <td>
        <input type="text" name="orderInfo.userhandleResult" class="formText {required: true}"
               value="${(orderInfo.userhandleResult)!}" readonly="readonly"/>
    </td>
</tr>

<tr>
    <th>
        上游是否异步通知:
    </th>
    <td>
        <#if orderInfo.synOrAsy?? && orderInfo.synOrAsy=="0">
            同步通知
        <#elseif orderInfo.synOrAsy?? && orderInfo.synOrAsy=="1">
            异步通知
        </#if>
    </td>
</tr>
<#--<tr>-->
    <#--<th>-->
        <#--退款给下游用户结果返回状态:-->
    <#--</th>-->
    <#--<td>-->
        <#--<input type="text" name="orderInfo.refundResult" class="formText {required: true}"-->
               <#--value="${(orderInfo.refundResult)!}" readonly="readonly"/>-->
    <#--</td>-->
<#--</tr>-->
<#--<tr>-->
    <#--<th>-->
        <#--退款给下游用户结果失败原因:-->
    <#--</th>-->
    <#--<td>-->
        <#--<input type="text" name="orderInfo.refundFailedReason" class="formText {required: true}"-->
               <#--value="${(orderInfo.refundFailedReason)!}" readonly="readonly"/>-->
    <#--</td>-->
<#--</tr>-->

<tr>
    <th>
        备注:
    </th>
    <td>
        <textarea name="orderInfo.remark" class="formTextarea" readonly="readonly">${(orderInfo.remark)!}</textarea>
    </td>
</tr>

</table>
<div class="buttonArea">
    <input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回"
           hidefocus="true"/>
</div>
</div>
</body>
</@edit>
